package com.hmdp.config;

import lombok.Data;

@Data
public class SmsException extends RuntimeException {

    private Integer code;

    public SmsException(Integer code, String message) {
        super(message);
        this.code = code;
    }


    public SmsException(ResultCodeEnum resultCodeEnum) {
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }
}
